import request from '@/utils/request'

export function importUpcWhiteListData(data) {
  return request({
    url: process.env.VUE_APP_BASE_API4 + '/excel/importUpcWhiteListData',
    headers: { 'Content-Type': 'multipart/form-data' },
    method: 'put',
    timeout: 600000,
    data
  })
}

export function batchDelete(data) {
  return request({
    url: process.env.VUE_APP_BASE_API3 + '/upcWhiteList/batchDelete',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: process.env.VUE_APP_BASE_API3 + '/upcWhiteList/update',
    method: 'post',
    data
  })
}
